﻿using B.S.BasicData.Domain;
using B.S.BasicData.Domain.Li;
using B.S.BasicData.Domain.S;
using B.S.BasicData.Domain.SystemUsers;
using B.S.BasicData.Domain.TSH;
using B.S.BasicData.Domain.W;
using B.S.BasicData.Domain.XU;
using Microsoft.EntityFrameworkCore;
using System.Text.Json;

namespace B.S.BasicData.Infrastructure
{
    /// <summary>
    /// 数据库上下文类
    /// </summary>
    public class SCDBContext : DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="options">数据库上下文类</param>
        public SCDBContext(DbContextOptions options) : base(options)
        {

        }

        /// <summary>
        /// 在线箱子    ---tsh
        /// </summary>
        public DbSet<OnlineBoxes> OnlineBoxes { get; set; }
        /// <summary>
        /// 库存出入库    ---tsh
        /// </summary>
        public DbSet<InventoryRunning> InventoryRunnings { get; set; }
        /// <summary>
        /// 入库单明细    ---tsh
        /// </summary>
        public DbSet<InboundOrderDetails> InboundOrderDetails { get; set; }



        //protected override void OnModelCreating(ModelBuilder modelBuilder)
        //{
        //    // 显式注册实体，确保 EF Core 识别
        //    //modelBuilder.Entity<InventoryRunning>();
        //    //modelBuilder.Entity<InboundOrderDetails>();

        //    // 其他配置...
        //    base.OnModelCreating(modelBuilder);
        //}

        //数据集
        //public DbSet<> entities { get; set; }
        /// <summary>
        /// 待发货运单
        /// </summary>
        public DbSet<PendingShipmentWaybillsModel> PendingShipmentWaybillsModel { get; set; }
        /// <summary>
        /// 货运单
        /// </summary>
        public DbSet<WaybillModel> WaybillModel { get; set; }
        /// <summary>  
        /// 单位管理
        /// </summary>
        public DbSet<WorkUnitModel> WorkUnitModel { get; set; }
        /// <summary>
        /// 箱子管理
        /// </summary>
        public DbSet<BoxModel> boxesModels { get; set; }

        /// <summary>
        /// 在线下单
        /// </summary>
        public DbSet<OnlineOrdering> onlineOrderingsModel { get; set; }
        /// <summary>
        /// 仓库管理
        /// </summary>
        public DbSet<WarehouseManagement> warehouseManagementsModel { get; set; }
        /// <summary>
        /// 身份校验管理
        /// </summary>
        public DbSet<IAM_Model> iAM_Models { get; set; }
        /// <summary>
        /// 资费标准
        /// </summary>
        public DbSet<TariffStandardModel> tariffStandardModels { get; set; }
        /// <summary>
        /// 用户管理
        /// </summary>
        public DbSet<UserManagerModel> userManagerModels { get; set; }

        public DbSet<BaseClass> baseClassesModels { get; set; }



        public DbSet<StorageModel> storageModels { get; set; }

        /// <summary>
        /// 库存出入库
        /// </summary>
        public DbSet<Inventory> inventoriesModels { get; set; }
        /// <summary>
        /// 待盘点订单
        /// </summary>
        public DbSet<PendingOrders> pendingOrdersModels { get; set; }
        /// <summary>
        /// 产品管理
        /// </summary>
        public DbSet<ProductManage> productManagesModels { get; set; }


      
    }
}
